package hoodoos.rule.script.jython;

import hoodoos.rule.api.RequestContext;
import org.python.core.PyObject;

public class PyRequestContext extends PyObject implements RequestContext {

  private RequestContext instance;

  public PyRequestContext(RequestContext context) {
    this.instance = context;
  }

  @Override
  public Integer getIntRequestParameter(String requestParameterName) {
    return instance.getIntRequestParameter(requestParameterName);
  }

  @Override
  public String getStrRequestParameter(String requestParameterName) {
    return instance.getStrRequestParameter(requestParameterName);
  }

  @Override
  public void setIntRequestParameter(String requestParameterName, Integer value) {
    instance.setIntRequestParameter(requestParameterName, value);
  }

  @Override
  public void setStrRequestParameter(String requestParameterName, String value) {
    instance.setStrRequestParameter(requestParameterName, value);
  }
}
